drm: debugfs: Remove all files automatically on cleanup
authorNoralf Trønnes <noralf@tronnes.org>
Thu, 26 Jan 2017 22:56:03 +0000 (23:56 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 15 Feb 2018 17:38:10 +0000 (17:38 +0000)
commit1f7b85cddb58cb032b2aba384f778de44684f6c6
tree4a5888b36e874d37168ac3c752b11b3078f28fe8
parent09d6763b6b58a5cd0bdcd379a3384443af2b2ff9
drm: debugfs: Remove all files automatically on cleanup

Instead of having the drivers call drm_debugfs_remove_files() in
their drm_driver->debugfs_cleanup hook, do it automatically by
traversing minor->debugfs_list.
Also use debugfs_remove_recursive() so drivers who add their own
debugfs files don't have to keep track of them for removal.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170126225621.12314-2-noralf@tronnes.org
[rebased on 4.9]
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
drivers/gpu/drm/drm_debugfs.c